<?php   // $Id: devis_delete.php 289 2008-10-05 17:05:19Z pcoustillas $ ?>
<?php
/*
Copyright (C) 2003-2004 Guy Hendrickx
Licensed under the terms of the GNU  General Public License:http://www.opensource.org/licenses/gpl-license.php
File Authors:Guy Hendrickx 
*/
require_once("include/verif.php");
require_once("include/config/common.php");

$num_devis=isset($_GET['num_devis'])?$_GET['num_devis']:"";

$sql1 = "DELETE FROM ${tblpref}devis WHERE num_dev='$num_devis'";
mysql_query($sql1) or die("Erreur suppression devis !<br/>$sql1<br/>" . mysql_error());

$sql2 = "DELETE FROM ${tblpref}cont_dev WHERE dev_num='$num_devis'";
mysql_query($sql2) or die("Erreur suppression contenu devis !<br/>$sql2<br/>" . mysql_error());

header("Location: devis_lister.php?message=Devis n°$num_devis supprimé avec succès.");

?>

